    @GetMapping(value = "/nacos/consumer/{str}")
    public String getService(@PathVariable("str") String str) throws
            NacosException {
        List<ServiceInstance> instances = serviceDiscovery.getInstances("quickstart-provider");
        if (instances.isEmpty()) {
            return "Error: No instances available for service quickstart-provider";
        }
        ServiceInstance serviceInstance = instances.get(0);
        String url = serviceInstance.getHost() + ":" +
                serviceInstance.getPort();
        return restTemplate.getForObject("http://" + url + "/nacos/service/" +
                str, String.class);
    }